package com.example.myerp.mapper;

import com.example.myerp.pojo.Inbound_Scheduling;
import com.example.myerp.pojo.S_pay_detatils;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhuxingyu
 * @since 2021-08-10
 */
@SuppressWarnings("all")
public interface S_pay_detatilsMapper extends BaseMapper<S_pay_detatils> {
    void addSpayDet(S_pay_detatils sPayDetatils);

    List<S_pay_detatils> selSon(Long parentId);

    List<Inbound_Scheduling> selInbSch(Long parentId);

    void updSpayDet(@Param("num") Integer num, @Param("id") Long id);

    Integer selStatus(Long parentId);

    Integer selStaedSon(Long parentId);

    void spayDetRegCell(@Param("num") Integer num, @Param("id") Long id);

    void updCell(@Param("productId") Integer productId, @Param("paidAmount") Integer paidAmount);

    void sPayDetCellOver( @Param("paidAmount") Integer paidAmount, @Param("id") Long id);

    List<S_pay_detatils> scIMapDet(Long id);
}
